﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Category
/// </summary>
public class Category
{
    public Category(long id, string name, long parentCategoryID, string adNameExample, string imageUrl, string redirectUrl, bool readOnly, Attribute[] attributes)
	{
		ID = id;
		Name = name;
        LevelName = name;
        ParentCategoryID = parentCategoryID;

        ImageUrl = imageUrl;

        RedirectUrl = redirectUrl;

        AdNameExample = adNameExample;
		Attributes = attributes;
        ReadOnly = readOnly;
	}

    public void SetLevelName(string levelName)
    {
        LevelName = levelName;
    }

    public void SetAttributes(Attribute[] attr)
    {
        Attributes = attr;
    }

	public long ID { get; private set; }

	public string Name { get; private set; }

    public string LevelName { get; private set; }

    public long ParentCategoryID { get; private set; }

    public string AdNameExample { get; private set; }

    public string ImageUrl { get; private set; }

    public string RedirectUrl { get; private set; }

	public Attribute[] Attributes { get; private set; }

    public bool ReadOnly { get; private set; }

}